namespace Aurora.TaskScheduler.Extension;
/// <summary>
/// 参数无效的异常
/// </summary>
public class ArgumentInvalidException : Exception
{
    /// <summary>
    /// 错误码
    /// </summary>
    public int Code { get; set; }

    public new string Message { get; set; }

    /// <summary>
    /// 构造函数
    /// </summary>
    public ArgumentInvalidException()
    {
    }

    /// <summary>
    /// 构造函数
    /// </summary>
    /// <param name="message"></param>
    public ArgumentInvalidException(string message) : base(message)
    {
        Message = message;
    }

    /// <summary>
    /// 构造函数
    /// </summary>
    /// <param name="code"></param>
    /// <param name="message"></param>
    public ArgumentInvalidException(int code, string message) : base(message)
    {
        Code = code;
        Message = message;
    }

    /// <summary>
    /// 构造函数
    /// </summary>
    /// <param name="code"></param>
    public ArgumentInvalidException(int code)
    {
        Code = code;
    }
}